- Rmarkdown: cloned from https://github.com/micha-silver/ReLTER_demo
- Slides on website: https://micha-silver.github.io/index.html
- Youtube videos: (to be announced)
02/05/2022
RStudio (https://www.rstudio.com/products/rstudio/download/)
New Project -> Version Control
Encourages collaboration “out of the box”. https://github.com/micha-silver/ReLTER_demo
R online resourcesR for Data Science: https://r4ds.had.co.nz
R packagesReLTER, lterdatasampler, EML )
Please execute the code before continue the presentation
# Install some standard spatial packages from CRAN
if (!require("sf", quietly = TRUE))
install.packages("sf")
if (!require("terra", quietly = TRUE))
install.packages("terra")
# package from Bioconductor
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install()
BiocManager::install("EBImage")
## Warning: package(s) not installed when version(s) same as current; use `force = TRUE` to ## re-install: 'EBImage'
# Install development package from github
if (!require("remotes", quietly = TRUE))
install.packages("remotes")
# Install the dev version of ReLTER for use new function
if (!require("ReLTER", quietly = TRUE))
remotes::install_github("ropensci/ReLTER", ref = 'dev__withImprovements')
## ReLTER is specially drafted for the LTER community.
##
## To contribute to the improvement of this package, join the group of
## developers (https://github.com/ropensci/ReLTER).
##
## If you use this package, please cite as:
##
## Alessandro Oggioni, Micha Silver, Luigi Ranghetti & Paolo Tagliolato.
## (2021) oggioniale/ReLTER: ReLTER v1.1.0 (1.1.0). Zenodo.
## https://doi.org/10.5281/zenodo.5576813
After installing, we need to load the packages into this R session.
# Convenient way to load list of packages
pkg_list <- c("sf", "terra", "ReLTER", "tmap")
lapply(pkg_list, require, character.only = TRUE)
## [[1]] ## [1] TRUE ## ## [[2]] ## [1] TRUE ## ## [[3]] ## [1] TRUE ## ## [[4]] ## [1] TRUE
R Spatialsf, terraterra, starstmap, leaflet, ggmap, (plot)